﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApiMIT3.Utils
{
    // <Author>Rainer Schmitt</Author>
    // <StudentNo>1235656</StudentNo>
    // Copyright (c) 06/04/2015 All Right Reserved
    // <Date>06/04/2015</date>
    public static class TimeUtil
    {
        public static long FromDateTime(DateTime time)
        {
            return time.Ticks;
        }

        public static DateTime FromLong(long time)
        {
            return new DateTime(time);
        }
    }
}